<form id="upload_form" 
	action="<?php echo $this->escape($this->element->getAction()) ?>"
	method="<?php echo $this->escape($this->element->getMethod()) ?>" 
	name="<?php echo $this->escape($this->element->getName()) ?>" 
	enctype="<?php echo $this->escape($this->element->getEnctype()) ?>" 
    onsubmit="return checkForm()">
	<div class="modal-body">
			<!-- hidden crop params -->
	        <input type="hidden" id="x1" name="x1" />
	        <input type="hidden" id="y1" name="y1" />
	        <input type="hidden" id="x2" name="x2" />
	        <input type="hidden" id="y2" name="y2" />
	        <input type="file" name="image_file" id="image_file" onchange="fileSelectHandler()" />
	 
	        <div class="error"></div>
	 
            <img id="preview" />
            
                <input type="hidden" id="filesize" name="filesize" />
                <input type="hidden" id="filetype" name="filetype" />
                <input type="hidden" id="filedim" name="filedim" />
                <input type="hidden" id="w" name="w" />
                <input type="hidden" id="h" name="h" />
        
	</div>
	<div class="modal-footer">
		<?php echo $this->formSubmit($this->element->submit->getName(),$this->translate($this->element->submit->getLabel()),array('class' => 'btn btn-primary'));?>
	</div>
</form>